//
//  AIMineCacheCell.m
//  ZJCLoveBee
//
//  Created by 朱建超 on 16/12/22.
//  Copyright © 2016年 itHeiMa. All rights reserved.
//

#import "AIMineCacheCell.h"
#import "Masonry.h"
#import "ZJCSettingViewController.h"

@interface AIMineCacheCell ()

@property(nonatomic,weak)UILabel *label;

@property(nonatomic,weak)UILabel *cacheLabel;

@end

@implementation AIMineCacheCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupCell];
        
    }
    return self;
}

-(void)setupCell{
    UILabel *label = [UILabel new];
    
    label.text = @"清除缓存";
    
    [self.contentView addSubview:label];
    
    self.label = label;
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.mas_equalTo(self.contentView.mas_centerY);
        make.left.mas_equalTo(self.contentView.mas_left).offset(15);
        
    }];
    
    UILabel *cacheLabel = [UILabel new];
    
    cacheLabel.textColor = [UIColor lightGrayColor];
    
    [self.contentView addSubview:cacheLabel];
    
    self.cacheLabel = cacheLabel;
    
    [cacheLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.mas_equalTo(self.contentView.mas_centerY);
        make.right.mas_equalTo(self.contentView.mas_right).offset(-15);
        
    }];

    
}

-(void)setCacheText:(NSString *)cacheText{

    _cacheText = cacheText;
    
    self.cacheLabel.text = cacheText;

}

@end
